﻿using Autofac;
using System.Reflection;
using Module = Autofac.Module;

namespace Warehouse.Shared
{
    public class WarehouseRegister : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
         
            builder.RegisterAssemblyTypes(
                 Assembly.Load("Warehouse.Service")

             )
         .Where(a => a.Name.EndsWith("Service")).AsImplementedInterfaces();



        }
    }
}